package router

import (
	"github.com/gin-gonic/gin"
	"tg-bot/controller"
	"tg-bot/middleware"
)

func SetRelayRouter(router *gin.Engine) {
	router.Use(middleware.CORS())
	setBasicRouter(router)
}

func setBasicRouter(router *gin.Engine) {
	modelsRouter := router.Group("/v1")
	{
		modelsRouter.GET("/hello", controller.Login)
		modelsRouter.POST("/register", controller.Register)
	}
}
